package cn.edu.hdu.dingSpace;

public class AbstractAd extends AbFactory{
    @Override
    public User getuser(String name) {
        return null;
    }

    @Override
    public Ad getad(String name) {
        if(name.equalsIgnoreCase("Ad")){
        System.out.println("管理员操作准备成功");
        return new AdoOperation();
    }
        else
            return null;
    }
}

        /*System.out.println("This is PTF");
        if(name.equalsIgnoreCase("Photo1")) {
            System.out.println("Photo1 is ok");
            return new AdoOperation();
        }else if(name.equalsIgnoreCase("Photo2")) {
            System.out.println("Photo2 is ok");
            return new Photo2();
        }
        else {
            System.out.println("No true Vedio");
            return null;
        }

    }*/